mem_event: use different ringbuffers for share, paging and access
authorOlaf Hering <olaf@aepfle.de>
Fri, 16 Sep 2011 11:19:26 +0000 (12:19 +0100)
committerOlaf Hering <olaf@aepfle.de>
Fri, 16 Sep 2011 11:19:26 +0000 (12:19 +0100)
commit2c36185d4407f6932ecf3e8d5244049c816a8f91
tree997b84c388238b9f9b12be38b704616d69ccb396
parentade1da50bcd9f686f32b5f92dc376260d650b396
mem_event: use different ringbuffers for share, paging and access

Up to now a single ring buffer was used for mem_share, xenpaging and
xen-access.  Each helper would have to cooperate and pull only its own
requests from the ring.  Unfortunately this was not implemented. And
even if it was, it would make the whole concept fragile because a crash
or early exit of one helper would stall the others.

What happend up to now is that active xenpaging + memory_sharing would
push memsharing requests in the buffer. xenpaging is not prepared for
such requests.

This patch creates an independet ring buffer for mem_share, xenpaging
and xen-access and adds also new functions to enable xenpaging and
xen-access. The xc_mem_event_enable/xc_mem_event_disable functions will
be removed. The various XEN_DOMCTL_MEM_EVENT_* macros were cleaned up.
Due to the removal the API changed, so the SONAME will be changed too.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Tim Deegan <tim@xen.org>
16 files changed:
tools/libxc/Makefile
tools/libxc/xc_mem_access.c
tools/libxc/xc_mem_event.c
tools/libxc/xc_mem_paging.c
tools/libxc/xc_memshr.c
tools/libxc/xenctrl.h
tools/tests/xen-access/xen-access.c
tools/xenpaging/xenpaging.c
xen/arch/ia64/xen/dom0_ops.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/mem_event.c
xen/arch/x86/mm/mem_paging.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m.c
xen/include/public/domctl.h
xen/include/xen/sched.h